/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * AddSaleLine.java
 *
 * Created on Feb 16, 2009, 10:59:26 AM
 */

package magis;

/**
 *
 * @author Brady
 */
public class AddCustomer extends javax.swing.JFrame {

    /** Creates new form AddSaleLine */
    public AddCustomer() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        custInfo_pnl = new javax.swing.JPanel();
        fname_lbl = new javax.swing.JLabel();
        fname_txt = new javax.swing.JFormattedTextField();
        lname_lbl = new javax.swing.JLabel();
        lname_txt = new javax.swing.JFormattedTextField();
        address_lbl = new javax.swing.JLabel();
        address_txt = new javax.swing.JFormattedTextField();
        phone_lbl = new javax.swing.JLabel();
        phone_tx = new javax.swing.JFormattedTextField();
        highPrice_lbl = new javax.swing.JLabel();
        highPrice_txt = new javax.swing.JFormattedTextField();
        lowPrice_lbl = new javax.swing.JLabel();
        lowPrice_txt = new javax.swing.JFormattedTextField();
        bottomMenu_pnl = new javax.swing.JPanel();
        addCar_btn2 = new javax.swing.JButton();
        saveCustomer_btn = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        custInfo_pnl.setBorder(javax.swing.BorderFactory.createTitledBorder("Customer Information"));
        custInfo_pnl.setLayout(new java.awt.GridBagLayout());

        fname_lbl.setText("First Name:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(fname_lbl, gridBagConstraints);

        fname_txt.setToolTipText("");
        fname_txt.setPreferredSize(new java.awt.Dimension(125, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(fname_txt, gridBagConstraints);

        lname_lbl.setText("Last Name:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(lname_lbl, gridBagConstraints);

        lname_txt.setToolTipText("");
        lname_txt.setPreferredSize(new java.awt.Dimension(125, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(lname_txt, gridBagConstraints);

        address_lbl.setText("Address:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(address_lbl, gridBagConstraints);

        address_txt.setPreferredSize(new java.awt.Dimension(125, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(address_txt, gridBagConstraints);

        phone_lbl.setText("Phone:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(phone_lbl, gridBagConstraints);

        phone_tx.setPreferredSize(new java.awt.Dimension(125, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(phone_tx, gridBagConstraints);

        highPrice_lbl.setText("High Price:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(highPrice_lbl, gridBagConstraints);

        highPrice_txt.setPreferredSize(new java.awt.Dimension(125, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(highPrice_txt, gridBagConstraints);

        lowPrice_lbl.setText("Low Price:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(lowPrice_lbl, gridBagConstraints);

        lowPrice_txt.setPreferredSize(new java.awt.Dimension(125, 20));
        lowPrice_txt.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                lowPrice_txtFocusLost(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
        custInfo_pnl.add(lowPrice_txt, gridBagConstraints);

        getContentPane().add(custInfo_pnl, java.awt.BorderLayout.CENTER);

        addCar_btn2.setFont(new java.awt.Font("Tahoma", 0, 8));
        addCar_btn2.setText("Cancel");
        bottomMenu_pnl.add(addCar_btn2);

        saveCustomer_btn.setFont(new java.awt.Font("Tahoma", 0, 8)); // NOI18N
        saveCustomer_btn.setText("Add Customer");
        saveCustomer_btn.setAlignmentY(0.0F);
        saveCustomer_btn.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        bottomMenu_pnl.add(saveCustomer_btn);

        getContentPane().add(bottomMenu_pnl, java.awt.BorderLayout.SOUTH);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void lowPrice_txtFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_lowPrice_txtFocusLost

}//GEN-LAST:event_lowPrice_txtFocusLost

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new AddCustomer().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton addCar_btn2;
    private javax.swing.JLabel address_lbl;
    private javax.swing.JFormattedTextField address_txt;
    private javax.swing.JPanel bottomMenu_pnl;
    private javax.swing.JPanel custInfo_pnl;
    private javax.swing.JLabel fname_lbl;
    private javax.swing.JFormattedTextField fname_txt;
    private javax.swing.JLabel highPrice_lbl;
    private javax.swing.JFormattedTextField highPrice_txt;
    private javax.swing.JLabel lname_lbl;
    private javax.swing.JFormattedTextField lname_txt;
    private javax.swing.JLabel lowPrice_lbl;
    private javax.swing.JFormattedTextField lowPrice_txt;
    private javax.swing.JLabel phone_lbl;
    private javax.swing.JFormattedTextField phone_tx;
    private javax.swing.JButton saveCustomer_btn;
    // End of variables declaration//GEN-END:variables

}
